package cn.tedu.zhyl.base.utils;

import cn.tedu.zhyl.system.pojo.entity.SysUser;

public class AuthContext {
    private AuthContext() {};
    private final static ThreadLocal<SysUser> threadLocal = new ThreadLocal<>();
    public static void set(SysUser sysUser){
        threadLocal.set(sysUser);
    }
    public static SysUser get(){
        return threadLocal.get();
    }
    public static void remove(){
        threadLocal.remove();
    }
}
